<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="portlet box green">
	<div class="portlet-title">
		<div class="caption">
			<i class="fa fa-gift"></i>商品信息
		</div>
  </div>
  <div class="portlet-body form">
  	<form id="goodsForm" class="form-horizontal form-bordered" action="/goods/save" method="post">
  		<div class="form-group">
        <label class="col-md-3 control-label">标题:</label>
        <div class="col-md-4">
	          <input type="text" name="title" class="form-control" value="${goods.title}"  maxlength="255"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">站点id:</label>
        <div class="col-md-4">
	          <input type="text" name="siteId" class="form-control" value="${goods.siteId}"  maxlength="40"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">类型id:</label>
        <div class="col-md-4">
	          <input type="text" name="categoryId" class="form-control" value="${goods.categoryId}"  maxlength="40"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">封面图:</label>
        <div class="col-md-4">
	          <input type="text" name="cover" class="form-control" value="${goods.cover}"  maxlength="500"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">滑动图:</label>
        <div class="col-md-4">
	          <input type="text" name="banner" class="form-control" value="${goods.banner}"  maxlength="2,000"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">描述:</label>
        <div class="col-md-4">
	          <input type="text" name="description" class="form-control" value="${goods.description}"  maxlength="500"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">详情内容:</label>
        <div class="col-md-4">
	          <input type="text" name="detail" class="form-control" value="${goods.detail}"  maxlength="500"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">常见问题:</label>
        <div class="col-md-4">
	          <input type="text" name="faq" class="form-control" value="${goods.faq}"  maxlength="500"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">价格:</label>
        <div class="col-md-4">
	          <input type="text" name="price" class="form-control" value="${goods.price}"  maxlength="50"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">好评率:</label>
        <div class="col-md-4">
	          <input type="text" name="reviews" class="form-control" value="${goods.reviews}"  maxlength="50"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">点评数:</label>
        <div class="col-md-4">
	          <input type="text" name="reviewsCount" class="form-control" value="${goods.reviewsCount}"  maxlength="50"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">外连url:</label>
        <div class="col-md-4">
	          <input type="text" name="url" class="form-control" value="${goods.url}"  maxlength="500"/>
        </div>
      </div>
  		<div class="form-group">
        <label class="col-md-3 control-label">状态：1上架，0下架:</label>
        <div class="col-md-4">
	          <input type="text" name="status" class="form-control" value="${goods.status}"  maxlength="10"/>
        </div>
      </div>
      <div class="form-actions">
        <div class="col-md-9 col-md-offset-3">
          <button type="button" class="btn btn-primary" onclick="save(this)">
          	<spring:message code="btn.save"></spring:message>
          </button>
          <button type="reset" class="btn btn-default" onclick="cancel()">
          	<spring:message code="btn.return"></spring:message>
          </button>
        </div>
      </div>
      <input type="hidden" name="id" value="${goods.id}">
  	</form>
  </div>
</div>
<script type="text/javascript" src="<c:url value="/static/custom/datepicker-util.js"></c:url>"></script>
<script type="text/javascript">
	$(function(){
		$('#goodsForm').validate();
	});
</script>